home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / D-G / Datalogger / DataLogger.Docs next >
Encoding:
Text File  |  1992-12-06  |  8.6 KB  |  175 lines  |  [ttro/ttxt]

  1. DataLogger.
  2.  
  3. DataLogger is an Utility programme written as an addition to Gumboot, the Real World Interface for Macs, and therefore is as Quick and Dirty as they come. DataLogger was written to provide a tool that would be very straight forward to use. It was written to make the most out of Microprocessor Development kits, the one that I am using at present, Gumboot, is  based around the MC68HC11A8.
  4.  
  5. Specs…
  6.  
  7. Display of incoming data in Text or Graph form.
  8.  
  9. Able to save data as a file or down load data to a target processor in one command.
  10.  
  11. Soft scrolling and fast or slow display of incoming text.
  12.  
  13. A range of Baud rates and text sizes.
  14.  
  15. Display data relative to 5 volts FSD or as a count from 0 to 255.
  16.  
  17.  MultiFinder or System 7.0 does work but......  the Finder cannot guarantee ‘processor time when required, you may want to Format a disk or some other horrible task.
  18.  
  19.  Screen Redraws are Not supported, be careful. Avoid using dialog boxes.
  20.  
  21. In combination with Gumboot, DataLogger does the following
  22.  
  23. Sample rate from 1 per second for periods of 1 minute or greater, can be overridden.
  24.  
  25. A Faster rate which is dependent on the Mac, 5 -10 samples / second on a Mac SE / Classic.
  26.  
  27. 8 bit Analogue to Digital conversion, with a maximum rate of 65,000 samples per second. 19.5mV per count, maximum reading with Gumboot is limited to 3.8 Volts by the buffering. Maximum input voltage, + 30 volts. This section can be bypassed.
  28.  
  29. Up to 8 A/D channels, 4 channels are used by this software.
  30.  
  31. The nature of data coming from Gumboot can be changed by running another Driver, data could be A/D conversions, counts, times, periods, or combinations of various types.
  32.  
  33. Files are saved as TEXT, these can be opened by Word processors and Spread sheets.
  34.  
  35. On screen graphing of incoming data.
  36.  
  37. Operation
  38.  
  39. Quick Start. This applies to the Applications, Datalogger, VoltMeter and QuickDisplay.
  40.  
  41. Run this application, (easy so far).
  42.  
  43. This application is the same as the one suplied with Gumboot and it will attempt to open the Modem port for it's own use !!
  44.  
  45. Select Demo Data from the Options menu. (
  46.  
  47. If you now select Prompt for Data a series of numbers will flash across the screen and more will follow every 2 seconds.
  48.  
  49. The first number is the number of channels, the rest are A/D conversion converted to voltages, with reference to +5 volts.
  50.  
  51. We can stop these by selecting Prompt for Data again or command-G.
  52.  
  53. Select Graph and Prompt for Data and a grid should appear and incoming values should be plotted on it.
  54.  
  55. The following section on the menu functions will show you what other options are available.
  56.  
  57. The Menus.
  58.  
  59. File
  60.  
  61. Display Text
  62. Prompts you for a file and then flashes it past you eyes at unreadable speed. Sorry it’s only there to allow you to check on what is being saved to disk. If you wish to take a more serious look at a file I suggest a simple DA or Quit and Run a Spreadsheet or Text Editor, TeachText is a good choice.
  63.  
  64. Upload File 
  65. Does the same as Display Text but churns it out to line to be received by a waiting, whatever.. used to Upload Programmes to Gumboot.
  66.  
  67. Capture Text 
  68. This Item Toggles the Capture Mode on and off as shown by a flag next to the item in the menu. Data is saved as a TEXT file.
  69.  
  70. Quit 
  71. This command closes the programme down, freeing the Modem port, and it also closes the current Data Capture file, just in case you forget.
  72.  
  73.  
  74. Edit
  75.  
  76.  The Edit Menu is not supported.
  77.  
  78. Commands
  79.  
  80. Erase Screen
  81. The screen is cleared and, if Graph is selected, a new Grid is drawn, else it will reflect my current state of mind, blank.
  82.  
  83. Use 9/12 pt Text
  84.  This is left over from an original terminal programme, it’s use is obvious, I hope.
  85.  
  86. Test.
  87.  See above.
  88.  
  89. Local Echo 
  90.  Useful as a check of what is going out to line, but that’s about it.
  91.  
  92. Prompt For Data
  93.  This starts, or stops, DataLogger requesting information from Gumboot. The value of the prompt is the number Channels required. This allows different values to be used for other Drivers.
  94.  
  95.  
  96. Baud
  97.  
  98. 9600
  99.  This is the current Baud rate used by Gumboot, resistance is useless.
  100.  
  101. Other…
  102.  
  103.  This feature is to be used carefully, some times Microprocessors need strange baud rates at the worst moments, so I included this option but it is only good from about 150 to 19,200 bits per second.
  104.  
  105. Options
  106.  
  107. Timestamp
  108. Includes the current Mac format time with each set of readings, this format may, or may not, clash with the format required by some spread sheet applications
  109.  
  110. Graph
  111. Once the screen has been erased, if this is active, a grid will be drawn and all incoming data will be graphed as a simple line graph. Each Channel is drawn with a different pattern, unless the amount of data to be represented makes this impossible.
  112.  
  113. data will still be save to a file as TEXT, screen redraws are not supported. At the top left hand corner are 3 Icons that give quick access to many common menu commands.
  114.  
  115. Graph Multiplier…
  116. This item brings up a dialog box that allows you to scale up incoming data to highlight it better on the screen, this does not affect saved data.
  117.  
  118. Beep
  119. This option has the Mac beep each time a reading is requested, good for monitoring the progress of data collection, bad if you need a quiet room in which to work.
  120.  
  121. Prompt
  122. This allows you to set the period and frequency of readings or prompts. Defaults are Prompt every 2 seconds for 1 minute.
  123.  
  124. Channels
  125. This item sets the number of channels for which data is required, if you are using the driver A/D.S19, it also allows different values that may be used by different drivers.
  126.  
  127. Original Data
  128. Incoming data is normally translated to a value referenced to +5 volts DC but this item allows you to save to untranslated data to a file and the screen.
  129.  
  130. Faster
  131. If you want to watch fast moving events select this option. The application will gather and process data and then prompt for new data, this is repeated over and over until the screen is full or you shut it off. On a Mac SE you get between 5 and 10 samples per second, the rate depends on the processing speed of the Mac, this is affected by System version Processor type and various other factors.
  132.  
  133. Demo Data
  134. This item can be used to check the settings in DataLogger. Once clicked, random data is generated and passed on for processing in the same manner as data from the serial port. Caution, the serial port remains active.
  135.  
  136. Line Thickness
  137. This item sets the line thickness used by the graphing function, note that the line defaults to a single point thickness if the amount of reading required reaches a set level.
  138.  
  139. Gumboot
  140.  
  141. Programme... 
  142. Like Upload and Display File, you are asked to select a file except that, files loaded this way are assumed to contain directives for Gumboot, so that it may load and then automatically run a programme. To enable some control over loading and running some ‘commands’ must be written into the file to be selected.
  143.  
  144. Kick Start
  145. This item sends the string ‘G B600’ which starts Any driver stored in EEPROM.
  146.  
  147. Drivers are just small bits of code that have Gumboot do a particular task. In the Listings folder you will find the original source code for the Drivers that I have provided. If we then add some BUFFALO commands then reprogramming Gumboot becomes a three step operation. Reset Gumboot, press return  , and select a driver using the Programme menu.
  148.  
  149. File Format 
  150.  
  151. If you use an Assembler to generate a file for Gumboot then you should end up with a file of Motorola S records, these files are TEXT files and can be opened with most Text Editing tools. To make life easy, we add the commands, that are usually need to Programme Gumboot, to this file. All Gumboot commands must be in UPPERCASE letters, and two directives can be added to make it work with DataLogger, these are 
  152.  
  153. ‘r’, lowercase R, tells DataLogger to send a Return character.
  154.  
  155. ‘d’, lowercase D, tells DataLogger to wait for a period before sending any more characters, this gives Gumboot time to shift data around or programme EEPROM addresses.
  156.  
  157. Example
  158.  
  159. BULKrd
  160. LOAD Tr
  161. S10600007EE00A91
  162.   |
  163.   |
  164. S10A004427F9B7102F393F23
  165. S9030000FCd
  166. move 0000 0050 b600rd
  167. G B604r
  168.  
  169. In the above example you can spot the Bulk and Load commands used to ready Gumboot for the data and, at the end, the commands to transfer the data to EEPROM and then start the programme. ‘r’ and ‘d’ are not sent to line.
  170.  
  171. DataLogger is an evolving application, it may be changed to reflect my current needs or at the suggestion of others, if you want a change made, feel free to contact me. An address will be included in this documentation or keep an eye the various BBSs, PD / Shareware people, and other sources.
  172.  
  173. © 1992 Paul B Jones.
  174. All rights reserved.
  175. You may copy this software for any non commercial purpose, but remember, it belongs to me, and if you want updates, changes or a PCB for a Microprocessor Experimenters Kit for Macintosh, then contact me.